# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit kde4-base

DESCRIPTION="Yet Another SystemMonitor Plasmoid"
HOMEPAGE="http://kde-look.org/content/show.php/yasp+Yet+Another+SystemMonitor+Plasmoid+?content=94144"
LICENSE="GPL"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="nvidia"
SLOT="4.2"

SRC_URI="http://kde-look.org/CONTENT/content-files/94144-${PN}-${PV}.tar.bz2"


DEPEND="kde-base/kdelibs:${SLOT}
        nvidia? ( media-video/nvidia-settings )
       "

S="${WORKDIR}/${P}"

src_unpack(){

        unpack ${A} || die "unpack"
        if use !nvidia
        then cat ${S}/CMakeLists.txt | sed /NVidia/d > ${S}/CMakeLists.txt_new
             rm ${S}/CMakeLists.txt && mv ${S}/CMakeLists.txt_new ${S}/CMakeLists.txt
        fi

}
